<?php
declare(strict_types=1);

namespace app\admin\service;

use app\admin\model\UsersWalletLog as UsersWalletLogModel;

class UsersWalletLogService
{
    /**
     * 指定用户钱包
     * @param $where
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function findUsersWalletLog($where)
    {
        return UsersWalletLogModel::findUsersWalletLog($where);
    }

    /**
     * 创建用户钱包
     * @param $data
     * @return UsersWalletLogModel|\think\Model
     */
    public static function createUsersWalletLog($data)
    {
        return UsersWalletLogModel::createUsersWalletLog($data);
    }

    /**
     * 更新用户钱包
     * @param $data
     * @param $where
     * @return UsersWalletLogModel|\think\Model
     */
    public static function updateUsersWalletLog($data, $where)
    {
        return UsersWalletLogModel::updateUsersWalletLog($data, $where);
    }
}